package com.iakuil.app.domain.dto.cmd;


import com.iakuil.app.common.core.enums.Gender;
import com.iakuil.app.common.core.jsr303.constraints.Password;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

/**
 * 用户 编辑参数
 *
 * @author Kai
 * @date 2024-01-26
 **/
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "用户编辑参数")
public class UserEdit implements Serializable {

    @Schema(description = "ID")
    @NotNull(message = "ID不能为空")
    private Long id;

    @Schema(description = "用户账号")
    private String userName;

    @Schema(description = "用户昵称")
    private String nickName;

    @Schema(description = "用户邮箱")
    private String email;

    @Schema(description = "手机号码")
    private String phoneNumber;

    @Schema(description = "性别")
    private Gender gender;

    @Schema(description = "密码")
    @Password
    private String password;
}
